cmake_minimum_required(VERSION 2.0) #is this new enough?

if(COMMAND cmake_policy)
	cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

find_package(SDL REQUIRED)
find_package(LibXml2 REQUIRED)

include_directories(${SDL_INCLUDE_DIR})
include_directories(${LIBXML2_INCLUDE_DIR})

include_directories("src/")

add_executable(roperator
src/cmdline/cmdline.cpp
src/util/exception.cpp
src/util/wstr.cpp
src/util/window.cpp
src/object/object.cpp
src/tests/runtests.cpp
src/tests/unittest.cpp
src/main.cpp
)

target_link_libraries(roperator ${SDL_LIBRARY} ${LIBXML2_LIBRARIES} GLEW)
